package com.controller;

import com.pojo.Account;
import com.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/findPwdContoller")
public class findPwdController {

    @Autowired
    private LoginService loginService;

    @RequestMapping("/getAccountByNameAndPhone")
    @ResponseBody
    public Account getAccountByNameAndPhone(Account account){
        return loginService.getAccountByNameAndPhone(account);
    }


}
